import { createPinia } from "pinia"
import piniaPersist from "pinia-plugin-persistedstate"
import useAppStore from "./modules/app"
import useUserStore from "./modules/user"

const pinia = createPinia()
pinia.use(piniaPersist) //持久化
export { useUserStore, useAppStore }

export default pinia
